from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('', (r'^$', 'qbank.welcome.welcome'), 
(r'^dialog_views/$', 'qbank.dialog_views.dialog_json'), 
(r'^qa_views/$', 'qbank.qa_views.qa_json'),
(r'^tags/$', 'qbank.qa_views.tags'),
(r'^users_views/usersBookmark/$', 'qbank.users_views.usersBookmark_json'),
(r'^users_views/usersView/$', 'qbank.users_views.usersView_json'),
(r'^accounts/login/$', 'django_cas.views.login'),
(r'^accounts/logout/$', 'django_cas.views.logout'),
(r'^authorView/$', 'qbank.author_views.authorView'),
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),
(r'^mediaFiles/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT } ),

    # Example:
    # (r'^meeqa_server/', include('meeqa_server.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
